package romaremez.teachingSystem;


import java.util.ArrayList;
import java.util.List;

public class FakeListHolder implements UsersHolder {
    private List<User> userList;

    public FakeListHolder() {
        userList = new ArrayList<User>();
        userList.add(new User("Jack", "1"));
        userList.add(new User("John", "1"));
        userList.add(new User("Bob", "1"));
    }

    public List<User> getUserList() {
        return userList;
    }

    @Override
    public void saveUserProgress(User someUser) {
        userList.add(someUser);
    }
}